package huhx.linux.com.kotlinlearn.utils

import android.content.Context
import android.widget.Toast

/**
 * Created by huhx on 2018-03-17 下午 10:11.
 */
object ToastUtils {

    /**
     * 长时间的显示Toast
     */
    fun longShow(context: Context, charSequence: CharSequence) {
        Toast.makeText(context, charSequence, Toast.LENGTH_LONG).show()
    }

    /**
     * 短时间的显示Toast
     */
    fun shortShow(context: Context, charSequence: CharSequence) {
        Toast.makeText(context, charSequence, Toast.LENGTH_SHORT).show()
    }
}